<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/alertbox.js"></script>
		<script type="text/javascript">
			$(function(){
				
            });
		</script>
		<style type="text/css">
			table td		{ border:0; padding:7px 5px; }
			.checkboxlist	{ float: left; width:140px; line-height: 24px; }
		</style>
	</head>
	<body>
		<ul class="act_this">
			<li><a href="{:U('app',array('groupId'=>$_GET['groupId']))}">应用授权</a></li>
			<li><a href="{:U('module',array('groupId'=>$_GET['groupId']))}">模块授权</a></li>
			<li class="this">操作授权</li>
		</ul>
		<div class="a_table" style="position:relative;top:-1px;_top:-2px;">
		<form method="post" action="__URL__/setAction">
			<input type="hidden" name="groupId" VALUE="{$Think.get.id}" >
			<input type="hidden" name="module" value="Node">
			<table width="100%" class="form_table" style="margin-top: -1px;">
				<tr>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td align="right" width="60">当前组</td>
					<td align="left">
						<select name="groupId" onchange="window.location.href='{:U('action')}&groupId='+this.options[this.selectedIndex].value;" class="input_text" style="width: auto;">
							<option value="">选择组</option>
							<php>foreach($groupList as $key=>$val){</php>
							<option value="{$key}"<php>if($key == $selectGroupId){</php> selected="selected"<php>}</php>>{$val}</option>
							<php>}</php>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right" width="60">当前应用</td>
					<td align="left">
						<select name="appId" onchange="window.location.href='{:U('action',array('groupId'=>$_GET['groupId']))}&appId='+this.options[this.selectedIndex].value;" class="input_text" style="width: auto;">
							<option value="">选择应用</option>
							<php>foreach($appList as $key=>$val){</php>
							<option value="{$key}"<php>if($key == $selectAppId){</php> selected="selected"<php>}</php>>{$val}</option>
							<php>}</php>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right" width="60">当前模块</td>
					<td align="left">
						<select name="moduleId" onchange="location.href='{:U('action',array('groupId'=>$_GET['groupId'],'appId'=>$_GET['appId']))}&moduleId='+this.options[this.selectedIndex].value;" class="input_text" style="width: auto;">
							<option value="">选择模块</option>
							<php>foreach($moduleList as $key=>$val){</php>
							<option value="{$key}"<php>if($key == $selectModuleId){</php> selected="selected"<php>}</php>>{$val}</option>
							<php>}</php>
						</select>
					</td>
				</tr>
				<tr>
					<td align="right" width="60"></td>
					<td align="left">
						<php>foreach($actionList as $keys=>$vals){</php>
						<div class="checkboxlist"><input type="checkbox" name="groupActionId[]" value="{$keys}"<php>foreach($groupActionList as $g=>$v){if ($keys == $v){echo ' checked="checked"';}}</php> /> {$vals}</div>
						<php>}</php>
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="left"><input type="submit" class="submit" value="提交表单" /></td>
				</tr>
				<tr>
					<td></td>
					<td></td>
				</tr>
			</table>
		</form>
		</div>
	</body>
</html>